@layout("../../../common/main.html"){
<!--模糊搜索区域-->
<div class="layui-row">
    <form class="layui-form layui-col-md12 ok-search">
        <input class="layui-input" placeholder="账号" autocomplete="off" id="userName" name="userName">
        <input class="layui-input" placeholder="电话" autocomplete="off" id="userMobile" name="userMobile">
        <button class="layui-btn" lay-submit type="button" lay-filter="search">
            <i class="layui-icon">&#xe615;</i>
        </button>
    </form>
</div>
<!--数据表格-->
<table class="layui-hide" id="tableId" lay-filter="tableFilter"></table>
@}
<!-- 头工具栏模板 -->
<script type="text/html" id="toolbarTpl">
    <div class="layui-btn-container">
        @if(shiro.check("sys:user:add")){
            <button class="layui-btn layui-btn-sm" lay-event="add">添加用户</button>
        @}
        @if(shiro.check("sys:user:role")){
            <button class="layui-btn layui-btn-sm" lay-event="role">分配权限</button>
        @}
    </div>
</script>
<!-- 行工具栏模板 -->
<script type="text/html" id="operationTpl">
    @if(shiro.check("sys:user:edit")){
        <a href="javascript:" title="编辑" lay-event="edit" class="layui-btn layui-btn-xs layui-btn-normal">编辑</a>
    @}
    @if(shiro.check("sys:user:del")){
        <a href="javascript:" title="删除" lay-event="del" class="layui-btn layui-btn-xs layui-btn-danger">删除</a>
    @}
    @if(shiro.check("sys:user:enable")){
        <a href="javascript:" title="启用" lay-event="enabled" class="layui-btn layui-btn-xs">启用</a>
    @}
    @if(shiro.check("sys:user:disable")){
        <a href="javascript:" title="禁用" lay-event="disabled" class="layui-btn layui-btn-xs layui-btn-warm">禁用</a>
    @}

</script>
<script src="${ctxPath}/static/modules/sys/user/user_index.js"></script>